<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<title>淘天机站群系统管理后台</title>
	<!-- include header_meta -->
</head>
<body>
	<!-- include header -->
	<div class="cp-wrap {if $jnarrow}jnarrow{/if}">
		<div class="crumb"></div>
		<div class="cp-form">
			<form method="POST" class="AjaxPost form-horizontal" onsubmit="return false;">
				<div class="control-group" >
					<label class="control-label">网站sitemap：</label>
					<div class="controls controls-row">
						<label><input type="radio"  name="data[sitemap]" value="1"  {if $var[sitemap]==1}checked='checked'{/if}> 开启</label>
						<label><input type="radio"  name="data[sitemap]" value="2"  {if $var[sitemap]==2}checked='checked'{/if}> 关闭</label>
						&#12288;
						<span class="tip">可提交到百度站长，sitemap地址：http://www.example.com/sitemap.xml</span>
					</div>
				</div>

				<div class="control-group" >
					<label class="control-label">爬虫统计：</label>
					<div class="controls controls-row">
						<label><input type="radio"  name="data[spider]" value="1"  {if $var[spider]==1}checked='checked'{/if}> 开启</label>
						<label><input type="radio"  name="data[spider]" value="0"  {if $var[spider]!=1}checked='checked'{/if}> 关闭</label>
						&#12288;
						<span class="tip">开启后，可在“其他管理”->“<a href="?m=spider&a=index">爬虫统计</a>”里查看爬虫统计的结果</span>
					</div>
				</div>

				<div class="control-group" >
					<label class="control-label">图片处理：</label>
					<div class="controls controls-row">
						<label><input type="radio"  name="data[downPicture]" value="1"  {if $var[downPicture]==1}checked='checked'{/if}> 本地图片</label>
						<label><input type="radio"  name="data[downPicture]" value="2"  {if $var[downPicture]==2}checked='checked'{/if}> 远程图片</label>
						<label><input type="radio"  name="data[downPicture]" value="0"  {if $var[downPicture]==0}checked='checked'{/if}> 过滤图片</label>
					</div>
				</div>

				<div class="control-group" >
					<label class="control-label">百度推送Token：</label>
					<div class="controls controls-row">
						<input type="text" name="data[baidu_tui_token]" value="{$var[baidu_tui_token]}" />
						&#12288;
						<span class="tip">留空则不推送，请到百度站长后台获取http://zhanzhang.baidu.com</span>
					</div>
				</div>

				<div class="control-group">
					<label class="rowtitle">自动采集速度：</label>
					<div class="row">
						<div class="butBox2 config-row-content">
							<div class="clearfix">
								<div class="sliderBox">
									<div class="pull-left slider-length-middle ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all slider-higher" id="sliderDiv"></div>
									<div class="size sltNum pull-left config-input-container ">
										<input type="hidden" class="config-slider-input" name="data[speed]" value="{$var[speed]}" maxlength="4" autocomplete="off">
									</div>
									<div  id="msg" style=" color:red;font-size:12px;"></div>
								</div>
							</div>
						</div>
					</div>
				</div>

				<div class="control-group">
					<label class="control-label">网站统计代码：</label>
					<div class="controls controls-row">
						<textarea name="data[site_code]" style="width:450px;height:200px;">{$var[site_code]}</textarea>
					</div>
				</div>
                                
                                <div class="control-group" >
					<label class="control-label">全站跳转：</label>
					<div class="controls controls-row">
						<label><input type="radio"  name="data[isjump]" value="1"  {if $var[isjump]==1}checked='checked'{/if}> 开启</label>
						<label><input type="radio"  name="data[isjump]" value="2"  {if $var[isjump]==0}checked='checked'{/if}> 关闭</label>
					</div>
				</div>
                            
                                <div class="control-group" >
					<label class="control-label">跳转URL：</label>
					<div class="controls controls-row">
						<input type="text" name="data[jumpurl]" value="{$var[jumpurl]}" />
						&#12288;
						<span class="tip">留空则不跳转</span>
					</div>
				</div>

				<div class="form-actions">
					<button type="submit" class="btn" style="width: 100px;">保存</button>
					<button type="button" class="btn btn-link" onclick="history.back(-1)" >返回</button>
				</div>
			</form>		
		</div>
	</div>
	<!-- include footer -->
	<script>
		$ (function(){
			var $_hardDisk1 = $("#sliderDiv");
			var speed=$("input[name='data[speed]']").val();
			$_hardDisk1.slider({
				range: "min",
				animate: true,
				min: 0,
				max: 100,
				step: 1,
				value: speed,
				slide: function (event, ui) {
					setsliderSize(ui.value);
				},
				stop: function (event, ui) {
					setsliderSize(ui.value);
				}
			});
			var setsliderSize = function (val) {
				$("input[name='data[speed]']").val(val);
			};

		});
	</script>
</body>
</html>